package com.habitreformer.core.habit;

import java.util.ArrayList;
import java.util.List;

public class HabitManager // implements HabitStateListener
{
	private volatile static HabitManager instance;
	private List<Habit> habitList;

	private HabitManager()
	{
		loadHabitList();
	}

	/**
	 * 
	 */
	private void loadHabitList()
	{
		// TODO LOAD habitList
		habitList = new ArrayList<Habit>();
	}

	public static HabitManager getInstance()
	{
		if (instance == null)
		{
			synchronized (HabitManager.class)
			{
				if (instance == null)
				{
					instance = new HabitManager();
				}
			}
		}
		return instance;
	}

	public List<Habit> getHabitList()
	{
		return habitList;
	}

}
